These examples show different question types and what you would write in the text editor and code editor.
Example 1, numbers:
Text editor:
If I have 5 apples, and I eat 1 of them, how many apples do I have?
Code editor:
answer = 4;
Example 2, strings:
Text editor:
What is the capitol of Utah?
Code editor:
answer = 'Salt Lake City';
Example 3, variables:
Text editor:
What is {{variable1}} + {{variable2}}?
Code editor:
answer = variable1 + variable2;
Example 4, multiple choice:
Text editor:
What color is the sky?
[*]choice1[*] Salmon
[*]choice2[*] Fuschia
[*]choice3[*] Blue
Code editor:
answer.choice1 = false;
answer.choice2 = false;
answer.choice3 = true;
Example 5, multiple select:
Text editor:
Do you believe in magic? (select all that apply)
[x]choice1[x] Yes
[x]choice2[x] No
[x]choice3[x] Maybe
Code editor:
answer.choice1 = true;
answer.choice2 = false;
answer.choice3 = true;
Example 6, multiple input:
Text editor:
Fill in the blanks: That's one small [[input1]] for [[input2]], one giant [[input3]] for mankind.
Code editor:
answer.input1 = 'step';
answer.input2 = 'man';
answer.input3 = 'leap';